<?php
/* OpenManage
 * Dependency resolving methods
 * getDependencies.php
 * Released under the GNU General Public Licnese version 3
 */

/* @since r19
 * @author Ciaran Crocker <ciaran.crocker5@gmail.com>
 * @returns boolean
 */

needsDatabase($plugin) {
	foreach($dependencies as $trythis) {
		if($trythis = 'database') {
			return true;
		};
	};
	return false;
};

/* @since r20
 * @author Ciaran Crocker <ciaran.crocker5@gmail.com>
 * @returns boolean
 */

needsAuthorize($plugin) {
	foreach($dependencies as $trythis) {
		if($trythis = 'authorize') {
			return true;
		};
	};
	return false;
};